package com.example.designpattenexample.chain;

//具体处理者
public class Handler1 extends Handler {

    @Override
    public void handle() {
        if (getNextHandler()!=null){
            getNextHandler().handle();
        }
        method1();
    }

    private void method1(){
        System.out.println("method1");
    }
}
